import Singleton from "../Base/Singleton"
import { ITile } from "../levels"
import { TileManager } from "../Script/Tile/TileManager"

export class DataManager  extends Singleton {

    static get Instance(){
       return super.GetInstance<DataManager>()
    }

    mapInfo:Array<Array<ITile>>
    mapRowCount:number =0
    mapColumnCount:number =0
    levelIndex:number =1
    tileInfo: Array<Array<TileManager>> = [] //实例化出来的tileManager实例


    reset(){
        this.mapInfo=[]
        this.mapRowCount=0
        this.mapColumnCount=0
    }
}

